|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectj3deditor.bin.util.ImageLoader
public class ImageLoader
Tool for loading images.
| Field Summary | |
|---|---|
static java.lang.String |
imagePath
path of the images inside the JAR file. |
| Constructor Summary | |
|---|---|
ImageLoader()
Creates an instance of ImageLoader. |
|
| Method Summary | |
|---|---|
java.awt.Image |
getImage(java.io.File source)
Loads an image from disk and returns it as an instance of Image. |
java.awt.Image |
getImage(java.lang.String path)
Loads an image from JAR file and returns it as an instance of Image. |
javax.swing.ImageIcon |
getImageIcon(java.io.File source)
Loads an image from disk and returns it as an instance of ImageIcon. |
javax.swing.ImageIcon |
getImageIcon(java.lang.String path)
Loads an image from JAR file and returns it as an instance of ImageIcon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String imagePath
| Constructor Detail |
|---|
public ImageLoader()
ImageLoader.
| Method Detail |
|---|
public java.awt.Image getImage(java.lang.String path)
Image.
path - the path of an image file relative to "/j3deditor/images"
Image, otherwise returns nullpublic java.awt.Image getImage(java.io.File source)
Image.
source - image file
Image, otherwise returns nullpublic javax.swing.ImageIcon getImageIcon(java.lang.String path)
ImageIcon.
path - the path of an image file relative to "/j3deditor/images"
ImageIcon, otherwise returns nullpublic javax.swing.ImageIcon getImageIcon(java.io.File source)
ImageIcon.
source - image file
ImageIcon, otherwise returns null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||